﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kaiser.Services
{
    public abstract class ServiceBase<T>
    {
        public virtual void Add(T model) { }
        public virtual void Edit(T model) { }
        public virtual void Del(object primaryId) {
        
        }
        public virtual void DeleteList(IList<string> ids) { }
        public virtual T Get(object primaryId) {
            throw new Exception("功能未实现");
        }
    }

    public abstract class IRepositorieBase<T>
    {
        public virtual void Insert(T model) { }
        public virtual void Update(T model) { }
        public virtual void Delete(object primaryId) { }
        public virtual T Get(object primaryId) { throw new Exception("功能未实现"); }
        public virtual void DeleteList(IList<string> ids) { }
    }


}
